package com.school.pojo;

import java.time.LocalDateTime;

public class Attendance {

	private Integer attendance_id;
	private Integer student_id;//学生信息
	private String reason;//如果不是请假，就要输入原因
	private Integer state;//0旷课、1早退、2迟到，3请假
	private Integer teacher_id;//考勤老师
	private LocalDateTime time=LocalDateTime.now();//添加时间
	private String student_name;//学生姓名
	private String teacher_name;//考勤老师
	public Attendance() {
		// TODO Auto-generated constructor stub
	}

	


	public Attendance(Integer attendance_id, Integer student_id, String reason, Integer state, Integer teacher_id,
			LocalDateTime time, String student_name, String teacher_name) {
		super();
		this.attendance_id = attendance_id;
		this.student_id = student_id;
		this.reason = reason;
		this.state = state;
		this.teacher_id = teacher_id;
		this.time = time;
		this.student_name = student_name;
		this.teacher_name = teacher_name;
	}







	public Integer getAttendance_id() {
		return attendance_id;
	}

	public void setAttendance_id(Integer attendance_id) {
		this.attendance_id = attendance_id;
	}

	public Integer getStudent_id() {
		return student_id;
	}

	public void setStudent_id(Integer student_id) {
		this.student_id = student_id;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getTeacher_id() {
		return teacher_id;
	}

	public void setTeacher_id(Integer teacher_id) {
		this.teacher_id = teacher_id;
	}

	public LocalDateTime getTime() {
		return time;
	}

	public void setTime(LocalDateTime time) {
		this.time = time;
	}

	@Override
	public String toString() {
		return "Attendance [attendance_id=" + attendance_id + ", student_id=" + student_id + ", reason=" + reason
				+ ", state=" + state + ", teacher_id=" + teacher_id + ", time=" + time + ", student_name="
				+ student_name + ", teacher_name=" + teacher_name + "]";
	}

	public String getStudent_name() {
		return student_name;
	}

	public void setStudent_name(String student_name) {
		this.student_name = student_name;
	}



	public String getTeacher_name() {
		return teacher_name;
	}



	public void setTeacher_name(String teacher_name) {
		this.teacher_name = teacher_name;
	}
	
	

}
